#include "com.h"
#include <vector>

using std::vector;

void VectorInit()
{
    vector<int> vec;

    for (int i = 0; i < 5; i++) {
        vec.push_back(i);
    }

    cout << "vec:\n";
    for (auto e : vec) {
        cout << e << endl;
    }

    vector<int> vec1(vec);
    cout << "vec1:\n";
    for (auto e : vec1) {
        cout << e << endl;
    }


    vector<int> vec2 = vec;
    cout << "vec2:\n";
    for (auto e : vec2) {
        cout << e << endl;
    }

    vector<int> vec3(3, 8);
    cout << "vec3:\n";
    for (auto e : vec3) {
        cout << e << endl;
    }

    vector<int> vec4(4);
    cout << "vec4:\n";
    for (auto e : vec4) {
        cout << e << endl;
    }

    vector<char> vec5{'B', 'r', 'o', 'o', 'k'};
    cout << "vec5:\n";
    for (auto e : vec5) {
        cout << e << endl;
    }

    vector<char> vec6 = {'B', 'a', 'b', 'y'};
    cout << "vec6:\n";
    for (auto e : vec6) {
        cout << e << endl;
    }
}
